﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace FantasyDraft2.Models
{
    public class PlayerComment
    {
        [Key]
        public int CommentId { get; set; }

        public int PlayerId { get; set; }
        public string Comment { get; set; }

        //Player Comment has a 1 to 1 realtionship with Player [PlayerId is a foreign key that references Player's PlayerId] so a reference to Player has to be made
        //in order to communicate.
        public virtual Player Player { get; set; }
    }
}